package com.ccit.greenlife.service;

import com.ccit.greenlife.pojo.User;

public interface UserService {
    User getUserInfo(String id);

    //根据用户名查询用户
    User findByUsername(String username);

    //注册用户
    void register(String username, String password, String email);

    void updatePwd(String newPwd);

    User findByEmail(String username);

    void updateAvatar(String avatar);

    void updateInfo(User user);
}
